<template>
  <div>
    <h1>测量：https://openlayers.org/en/latest/examples/measure.html</h1>
    <div id="map" class="map"></div>
    <form class="form-inline">
      <label for="type">Measurement type &nbsp;</label>
      <select id="type">
        <option value="length">Length (LineString)</option>
        <option value="area">Area (Polygon)</option>
      </select>
    </form>
  </div>

</template>

<!-- vue不能通过script引入js
 <script src="demo3.js"></script>
-->

<script>
import Demo3Js from './MeasureDemo.js'
export default {
  mounted () {
    Demo3Js.init();
  }
}
</script>

<!-- vue的script只被初始化一次
<script>
alert("1")
</script>
-->

<style lang="less" scoped>
</style>